import java.util.ArrayList;
import java.util.Random;


public class balls {

	
	public static void main(String[] args){
	double total = 0;
	double total1 = 0;
	double total2 = 0;
	double total3 = 0;
	double [] array ={99.0, 12.0, 77.0, 97.0, 22.0, 10.0, 10.0, 21.0, 81.0, 2.0, 22.0, 79.0, 32.0, 13.0, 28.0, 3.0, 81.0, 79.0, 62.0, 38.0, 42.0, 50.0, 82.0, 4.0, 58.0, 92.0, 42.0, 6.0, 60.0, 92.0, 41.0, 35.0, 75.0, 45.0, 0.0, 7.0, 98.0, 44.0, 45.0, 15.0, 64.0, 7.0, 30.0, 84.0, 84.0, 80.0, 30.0, 29.0, 33.0, 89.0, 26.0, 9.0, 84.0, 87.0, 83.0, 45.0, 3.0, 2.0, 72.0, 56.0, 9.0, 31.0, 23.0, 46.0, 83.0, 97.0, 65.0, 30.0, 52.0, 38.0, 20.0, 17.0, 44.0, 65.0, 80.0, 43.0, 56.0, 52.0, 61.0, 30.0, 21.0, 24.0, 53.0, 41.0, 66.0, 91.0, 66.0, 62.0, 78.0, 79.0, 23.0, 57.0, 7.0, 45.0, 92.0, 97.0, 62.0, 88.0, 83.0, 46.0};
	double [] array1 ={99.0, 12.0, 77.0, 97.0, 22.0, 10.0, 10.0, 21.0, 81.0, 2.0, 22.0, 79.0, 32.0, 13.0, 28.0, 3.0, 81.0, 79.0, 62.0, 38.0, 42.0, 50.0, 82.0, 4.0, 58.0, 92.0, 42.0, 6.0, 60.0, 92.0, 41.0, 35.0, 75.0, 45.0, 0.0, 7.0, 98.0, 44.0, 45.0, 15.0, 64.0, 7.0, 30.0, 84.0, 84.0, 80.0, 30.0, 29.0, 33.0, 89.0, 26.0, 9.0, 84.0, 87.0, 83.0, 45.0, 3.0, 2.0, 72.0, 56.0, 9.0, 31.0, 23.0, 46.0, 83.0, 97.0, 65.0, 30.0, 52.0, 38.0, 20.0, 17.0, 44.0, 65.0, 80.0, 43.0, 56.0, 52.0, 61.0, 30.0, 21.0, 24.0, 53.0, 41.0, 66.0, 91.0, 66.0, 62.0, 78.0, 79.0, 23.0, 57.0, 7.0, 45.0, 92.0, 97.0, 62.0, 88.0, 83.0, 46.0};
	double [] array2 ={99.0, 12.0, 77.0, 97.0, 22.0, 10.0, 10.0, 21.0, 81.0, 2.0, 22.0, 79.0, 32.0, 13.0, 28.0, 3.0, 81.0, 79.0, 62.0, 38.0, 42.0, 50.0, 82.0, 4.0, 58.0, 92.0, 42.0, 6.0, 60.0, 92.0, 41.0, 35.0, 75.0, 45.0, 0.0, 7.0, 98.0, 44.0, 45.0, 15.0, 64.0, 7.0, 30.0, 84.0, 84.0, 80.0, 30.0, 29.0, 33.0, 89.0, 26.0, 9.0, 84.0, 87.0, 83.0, 45.0, 3.0, 2.0, 72.0, 56.0, 9.0, 31.0, 23.0, 46.0, 83.0, 97.0, 65.0, 30.0, 52.0, 38.0, 20.0, 17.0, 44.0, 65.0, 80.0, 43.0, 56.0, 52.0, 61.0, 30.0, 21.0, 24.0, 53.0, 41.0, 66.0, 91.0, 66.0, 62.0, 78.0, 79.0, 23.0, 57.0, 7.0, 45.0, 92.0, 97.0, 62.0, 88.0, 83.0, 46.0};
	
   
    
   
    
    
    
    
	for(int i = 0; i < array.length; i++){
	   total += array[i]; 
	}
	double mean = total / array.length;
	System.out.println("The mean: "+mean);
	for(int i = 0; i < array.length; i++){
		   array[i] = Math.pow((array[i]-mean),2);
		   total1 = total1 + array[i];
		}
	double std = Math.sqrt((total1/(array.length-1)));
	System.out.println("The standard deviation: "+std);
	for(int j=0; j <array1.length; j++){
		array1[j] = Math.pow((array1[j]- mean), 3);
		total2=total2+array1[j];
	}
	//System.out.println(total2);
	double cos = total2/((array.length-1)*Math.pow(std, 3));
	System.out.println("The coefficient of skewness: "+cos);
	for(int j=0; j <array2.length; j++){
		array2[j] = Math.pow((array2[j]- mean), 4);
		total3 = total3+array2[j];
	}
	//System.out.println(total3);
	double cok = total3/((array.length-1)*Math.pow(std, 4));
	System.out.println("The coefficient of kurtosis: "+cok);
	System.out.println("The coefficient of excess kurtosis: "+(cok-3));
	}
}